package com.mingqijia.gassafety.authority.api.resp.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Damon S.
 * @version v1.0.1
 * @date {YEAR}年{MONTH}月{DAY}日 {TIME}
 */
@Data
@ApiModel(value = "资源信息数据")
public final class ResourceRespDTO implements Serializable {
    @ApiModelProperty(value = "资源编ID")
    private String id;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "资源编码")
    private String code;

    @ApiModelProperty(value = "资源类型:1-菜单，2-按钮，3-数据")
    private Integer type;

    @ApiModelProperty(value = "页面路径")
    private String url;

    @ApiModelProperty(value = "资源关联的数据内容")
    private String data;

    @ApiModelProperty(value = "资源支持的功能列表[按钮]")
    private String funcCode;

    @ApiModelProperty(value = "排序值")
    private Integer ordinal;

    @ApiModelProperty(value = "父级资源(根资源为/)")
    private String parentId;
}
